from aiogram import Dispatcher, types
from aiogram.filters import Text
from aiogram_dialog import DialogManager, StartMode

from app.bot.states.user import LoggingState


async def logging_settings(message: types.Message, dialog_manager: DialogManager):
    await dialog_manager.start(
        LoggingState.display_logging_status, mode=StartMode.RESET_STACK
    )


def register_logging_handlers(dispatcher: Dispatcher):
    dispatcher.message.register(logging_settings, Text(text="Статус логирования"))
